feat: 完成 Compact M1 收口并修复配置与可观测性风险#125
Closed
wynxing wants to merge 24 commits into
Closed
Conversation
- 默认启用 micro_compact,新增 manual full_replace 策略 - 统一 compact 流程并补齐 transcript 持久化与唯一命名 - 修复 micro_enabled=false 持久化丢失问题,兼容缺失字段回退默认值 - 调整 TUI compact 轻量可观测,避免 micro 失败污染主流程错误态 - 同步配置/事件/持久化相关文档并补齐回归测试 测试: - go test ./...
- 默认启用 micro_compact,新增 manual full_replace 策略 - 统一 compact 流程并补齐 transcript 持久化与唯一命名 - 修复 micro_enabled=false 持久化丢失问题,兼容缺失字段回退默认值 - 调整 TUI compact 轻量可观测,避免 micro 失败污染主流程错误态 - 同步配置/事件/持久化相关文档并补齐回归测试 测试: - go test ./...
9b58039 to
80d000b
Compare
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
This reverts commit cba03b1.
- 默认启用 micro_compact,新增 manual full_replace 策略 - 统一 compact 流程并补齐 transcript 持久化与唯一命名 - 修复 micro_enabled=false 持久化丢失问题,兼容缺失字段回退默认值 - 调整 TUI compact 轻量可观测,避免 micro 失败污染主流程错误态 - 同步配置/事件/持久化相关文档并补齐回归测试 测试: - go test ./...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更说明
本 PR 完成 Compact M1 收口与风险修复,重点解决配置一致性、上下文压缩策略完整性、可观测性与稳定性问题。
核心改动
micro_compact(支持显式关闭)manual_strategy=full_replacecontext/compactrunner,并补齐 transcript 先落盘后改写unix_nano + 随机后缀 + session_id)0600compact_done事件 payload 增加applied字段micro_enabled=false在配置持久化后丢失的问题,并兼容缺失字段回退默认值文档同步
README.mddocs/config-management-detail-design.mddocs/runtime-provider-event-flow.mddocs/session-persistence-design.mddocs/tools-and-tui-integration.md测试
go test ./...(全部通过)风险与兼容性
TUI -> Runtime -> Provider/Tools